<style>
    .dsj_cgjq > table > tbody > tr > td > input[type=number] {
        width: 100px !important;
    }
</style>
<div class="body">
    <form class="form-horizontal" role="form" id="cgjqform" name="cgjqform"
          novalidate>
        <div class="table-responsive list-table-panel dsj_cgjq">
            <div class="list-table-title">
                <div class="table-title">
                    创岗建区数据维护
                </div>
                <div class="table-tool">
                    <button class="btn btn-default1" ng-click="addCGJQ()">新增</button>
                    <button class="btn btn-primary" ng-click="saveCGJQ(cgjqform.$valid)" form="cgjqform">保存</button>
                </div>
            </div>
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                <thead>
                <tr>
                    <th>类别名称</th>
                    <th>数量</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="it in cgjq_dataList">
                    <td ng-class="{ 'has-error' : invalidValue($index,cgjqform,'cgjq_lbmc') &&  cgjqform.$submitted}"
                        align="center">
                        <input type="text" autocomplete="off" class="form-control"
                               name="cgjq_lbmc_{{$index}}"
                               ng-model="it.lbmc" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,cgjqform,'cgjq_sl') &&  cgjqform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="cgjq_sl_{{$index}}"
                               ng-model="it.sl" ng-required="true"/>
                    </td>
                    <td align="center">
                        <button class="btn td-btn bg-pink waves-effect"
                                ng-click="deleteCGJQ($index)" title="删除">
                            <!--<i class="material-icons td-icon">delete_forever</i>-->
                            删除
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>